# -*- coding:utf-8 -*-

'''
PROJECT_NAME : python_高级
file    : 属性查找顺序
author  : 1032162439@qq.com
date    : 2022-11-08 13:33
IDE     : PyCharm
'''



class Hero:
    """
    实体类
    """
    def __init__(self, name):
        """
        初始化方法
        :param name: 英雄名
        """
        self.name = name


def main():
    # 实例化
    luban = Hero('鲁班')
    print(luban.__dict__)
    print(luban.name)


if __name__ == '__main__':
    main()
